{extend name="public:base" /}

{block name="css"}
<link href="__INDEX__/css/news.css" tppabs="/style/css/news.css" rel="stylesheet" type="text/css">
<link href="__INDEX__/css/list.css" tppabs="/style/css/list.css" rel="stylesheet" type="text/css">
<link href="__INDEX__/css/css2.css" tppabs="/style/css/css2.css" rel="stylesheet" type="text/css">
{/block}

{block name="main"}


<table width="980" border="0" cellspacing="0" cellpadding="0">
    <tbody>
    <tr>
        <td width="252" height="300" valign="top" bgcolor="#FFFFFF">
            <table width="244" border="0" cellpadding="0" cellspacing="0" class="tablex5">
                <tbody>
                <tr>
                    <td height="30" background="__INDEX__/images/list_leibg.jpg" tppabs="__INDEX__/images/list_leibg.jpg" class="list_dhbt" style="padding-left:24px">
                        <div style="float:left">
                            <img name="" src="__INDEX__/images/lbxtb.jpg" tppabs="__INDEX__/images/lbxtb.jpg" alt="">
                        </div>
                        <div style=" float:left;background-image:url(__INDEX__/images/lbbj.jpg);	background-repeat: repeat-x;width: auto; height:29px; line-height:29px">
                            <span id="LsortName">业务工作</span></div>
                        <div style="float:left">
                            <img name="" src="__INDEX__/images/lbxtbend.jpg" tppabs="__INDEX__/images/lbxtbend.jpg" alt="">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td height="200" valign="top" bgcolor="#F5F5F5">
                        <div class="ywgz">
                            <ul>
                                {volist name="yw_type_list" id="vo"}
                                <li><a href="{:url('news', ['categoryId' => $vo.id])}">{$vo.name}</a></li>
                                {/volist}
                            </ul>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>

        </td>
        <td valign="top" bgcolor="#FFFFFF">
            <table width="726" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                <tbody>
                <tr>
                    <td class="top_leidh" style="color:#333333">
                        当前位置：
                        <a href="{:url('index')}">主页</a>
                        {if ($parent_type_info['id'] > 0)}&gt; <a href="{:url('news', ['categoryId' => $parent_type_info['id']])}">{$parent_type_info.name}</a>{/if}
                        &gt; <a href="javascript: void(0)">{if (input('name') == '')}{$type_info.name}{else /}{:input('name')}{/if}</a>
                    </td>
                </tr>
                </tbody>
            </table>
            <table width="726" border="0" cellpadding="0" cellspacing="0" class="list_tablebk">
                <tbody>
                <tr>
                    <td height="29" background="__INDEX__/images/list_lbflbg.jpg" tppabs="__INDEX__/images/list_lbflbg.jpg" class="list_dhbt">
                        <div style="float:left">
                            <img name="" src="__INDEX__/images/dhxtb.gif" tppabs="__INDEX__/images/dhxtb.gif" alt="">
                        </div>
                        <div style=" float:left;background-image:url(__INDEX__/images/dhbj.jpg);	background-repeat: repeat-x;width: auto; height:30px; line-height:30px">
                            <a href="javascript: void(0)">{if (input('name') == '')}{$type_info.name}{else /}{:input('name')}{/if}</a>

                        </div>
                        <div style="float:left">
                            <img name="" src="__INDEX__/images/dhbjend.jpg" tppabs="__INDEX__/images/dhbjend.jpg" alt="">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td height="40" class="list_newlb">
                        <ul>
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tbody>
                                {volist name="list" id="vo"}
                                    <tr>
                                        <td class="clist">·<a href="{:url('article_detail', ['id' => $vo['id']])}">{$vo.title}</a></td>
                                        <td align="right">{:time_format($vo['create_time'], 'Y-m-d')}</td>
                                    </tr>
                                    {if ($key%5 == 4)}
                                    <tr>
                                        <td colspan="2">
                                            <div style="border-bottom:1px dotted #CCCCCC; margin:0px 0px 15px 0px; width:100%;"></div>
                                        </td>
                                    </tr>
                                    {/if}
                                {/volist}
                                </tbody>
                            </table>
                        </ul>

                        <style>
                          .pagger-box ul {
                            width: 460px;
                            position: relative;
                            margin: 0 auto;
                            padding-bottom: 3px;
                            height: 40px;
                          }

                          .pagger-box ul li {
                            float: left;
                            /* margin: 0 auto; */
                            /*padding: 0 8px;
                        border: 1px solid #999;*/
                          }

                          .pagger {
                            height: 40px;
                            margin: 0;
                            text-align: center;
                            width: 730px;
                            font-family: PingFangSC-Regular;
                            font-size: 12px;
                            /* color: #303133; */
                            display: block;
                            margin-left: 6px;
                          }

                          .pagger-box ul li a.selected {
                            background-color: #2372c2;
                            border-color: #2372c2;
                            color: #fff;
                          }

                          .pagger-box ul li a {
                            padding: 0 8px;
                            border: 1px solid #999;
                          }
                        </style>

                        <div class="pagger-box pagger" id="box">
                            <ul>
                                {if (input('page') == 1 || input('page') < 1)}
                                <li><a href="javascript: void(0)">首页</a></li>
                                <li><a href="javascript: void(0)">上一页</a></li>
                                {else /}
                                <li><a href="{:url('news', ['categoryId' => input('categoryId'), 'page' => 1, 'name' => input('name')])}">首页</a></li>
                                <li><a href="{:url('news', ['categoryId' => input('categoryId'), 'page' => input('page') - 1, 'name' => input('name')])}">上一页</a></li>
                                {/if}

                                {for start="0" end="$all_page"}
                                <li>
                                    <a class="{if ((input('page') == $i + 1) || ($i == 0 && input('page') == 0))}selected{/if}" href="{:url('news', ['categoryId' => input('categoryId'), 'page' => $i + 1, 'name' => input('name')])}">{$i + 1}</a>
                                </li>
                                {/for}

                                {if ($all_page == 1 || input('page') == $all_page)}
                                <li><a href="javascript:void(0)">下一页</a></li>
                                <li><a href="javascript:void(0)">尾页</a></li>
                                {else /}
                                <li><a href="{:url('news', ['categoryId' => input('categoryId'), 'page' => (input('page') ?? 1) + 1, 'name' => input('name')])}">下一页</a></li>
                                <li><a href="{:url('news', ['categoryId' => input('categoryId'), 'page' => $all_page, 'name' => input('name')])}">尾页</a></li>
                                {/if}
                            </ul>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </td>
    </tr>
    </tbody>
</table>

{/block}